﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>数据管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="MyraStudio" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">

    <!-- App css -->
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/theme.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-table.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/layui.css" rel="stylesheet" type="text/css" />

</head>

<body>

    <!-- Begin page -->
    <div id="layout-wrapper">


        <div class="container-fluid" style="margin-top: 10px;">

            <!-- start page title -->

            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">

                            <h4 class="card-title">字典配置</h4>
                            <button type="button" class="btn btn-primary waves-effect waves-light"
                                onclick=createDictModel()>新增</button>
                            <br></br>

                            <table id="table_page" class="table mb-0">

                            </table>

                        </div> <!-- end card body-->
                    </div> <!-- end card -->
                </div><!-- end col-->
            </div>
            <!-- end row-->



        </div> <!-- container-fluid -->

    </div>
    <!-- END layout-wrapper -->

    <!-- Add model -->
    <div id="dictModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dictModalLabel"
        style="display: none;">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">

                    <h4 class="modal-title" id="dictModalLabel">新增字典</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="modal-body">
                    <input type='button' class="btn btn-primary waves-effect waves-light" value='新增'
                        onclick="addDictTable()" />
                    <form method='post' id="dictForm">

                        <table class="table mb-0" id="tableroom">


                        </table>

                    </form>
                </div>
                <!--模态框的尾部内容-->
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal"
                        onclick="buildDictJson()">保存/提交</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>

    <!-- END model -->

    <!-- Edit model -->
    <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
        style="display: none;">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">

                    <h4 class="modal-title" id="myModalLabel">字典内容</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="modal-body">
                    <input type='button' class="btn btn-primary waves-effect waves-light" value='新增'
                        onclick="addEditViewTable()" />
                    <form method='post' id="dictForm1">

                        <table class="table table-striped table-bordered table-hover" id="dictView">
                            <tr>
                                <td>键</td>&nbsp;&nbsp;
                                <td>值</td>&nbsp;&nbsp;
                                <td>单位</td>&nbsp;&nbsp;
                                <td style="width: 60px;">操作</td>&nbsp;&nbsp;
                            </tr>

                        </table>

                    </form>
                </div>
                <!--模态框的尾部内容-->
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal"
                        onclick="buildEditDictJson()">保存/提交</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>

    <!-- END model -->

    <!-- Overlay-->
    <div class="menu-overlay"></div>
	
	<script>
		var ipm = '[[${manageIp}]]';
	</script>
	
    <!-- jQuery  -->
    <script src="/assets/js/jquery.min.js"></script>
    <script src="/assets/js/bootstrap.bundle.min.js"></script>
    <script src="/assets/js/metismenu.min.js"></script>
    <script src="/assets/js/waves.js"></script>
    <script src="/assets/js/bootstrap-table.js"></script>
    <script src="/assets/js/bootstrap-table-zh-CN.js"></script>
    <script src="/assets/layui/layui.js"></script>

    <!-- third party js -->

    <!-- third party js ends -->

    <!-- Datatables init -->
    <script src="/assets/pages/dictionary-demo.js"></script>
    <script src="/assets/pages/arrowall.js"></script>

    <!-- App js -->
    <script src="/assets/js/theme.js"></script>

</body>

</html>